<?php
setcookie('name','hello world');
setcookie('h','world');
//header('Location:cookie2.php');
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<script>
    alert(document.cookie);
</script>
</body>
</html>
